<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面1</title>
    <style>
        body {
            background: linear-gradient(to right, #65CBF7, #B3A5FC);
            width: 100vw;
            height: 100vh;
            margin: 0;
        }

        .login-box {
            width: 60%;
            height: 450px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
            display: flex;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .left {
            width: 65%;
        }

        .left > img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .right {
            width: 35%;
            height: 100%;
            background-color: #fff;
            box-sizing: border-box;
            padding: 0 20px;
        }

        h1 {
            text-align: center;
            padding-top: 45px;
            margin-top: 0;
        }

        .inputItem {
            height: 44px;
            padding: 0;
            padding-left: 5px;
            border: none;
            background: none;
            outline: none;
            border-bottom: 3px solid #b3a5fc;
            width: 100%;
            font-size: 18px;
            margin-top: 20px;
        }

        .forget-pwd {
            margin-top: 25px;
            color: #9c3493;
            text-align: right;
            display: block;
        }

        .btn {
            background: linear-gradient(to right, #65CBF7, #B3A5FC);
            color: #9c3493;
            font-weight: bold;
            border: none;
            border-radius: 30px;
            height: 46px;
            width: 80%;
            font-size: 18px;
            display: block;
            margin: auto;
            margin-top: 30px;
        }

        /* 适配PC */
        @media screen and (min-width:960px) {
            .login-box {
                max-width: 950px;
                min-width: 750px;
            }
        }

        /* 适配ipad */
        @media screen and (max-width:960px) {
            .login-box {
                display: block;
                height: auto;
            }

            .left,
            .right {
                width: 100%;
                margin-top: 0;
            }

            .left {
                height: 200px;
            }

            .right {
                padding: 2vw 2vw;
            }

            h1 {
                padding-top: 0;
                margin-bottom: 1vw;
            }

            .inputItem,
            .forget-pwd,
            .btn {
                margin-top: 2vw;
            }
        }

        /* 适配移动 */
        @media screen and (max-width:750px) {
            .login-box {
                width: 85%;
            }
        }
    </style>
</head>

<body>
    <div class='login-box'>
        <div class='left'>
            <img src='./1.jpeg' alt="" />
        </div>
        <div class='right'>
            <h1>登录</h1>
            <input type="text" class='inputItem' placeholder='账号' />
            <input type="password" class='inputItem' placeholder='密码' />
            <a href="#" class='forget-pwd'>forget password?</a>
            <button class='btn'>登录</button>
        </div>
    </div>
</body>

</html>